/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.univcasa.managing.util;

/**
 *
 * @author issam
 */
public class LdapConfigurator {

    public static void configureHandler(LDAPHandler handler){

        handler.setBase("ou=People,dc=univcasa,dc=ma");
        handler.setBindDn("cn=admin,dc=univcasa,dc=ma");
        handler.setBindPass("azerty");
        //handler.setMaxEntries(1);
        handler.setScope(2);
        //handler.setFilter("uid=ens9");
        //handler.setUrl("ldap://ldap.univcasa.ma:389");
        handler.setUrl("ldap://localhost:389");
        
        //String[] attributs = new String[]{"uid","supannCodeINE","supannEtuId","givenName","sn"};
        String[] attributs = new String[]{"uid","givenName","sn"};
        handler.setAttributes(attributs);
               
    }

}
